package com.my.study.io.input;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/7/4 21:42
 **/
public class FileDownloadTest {

    public static void main(String[] args) throws FileNotFoundException {
        // 下载一个不存在的文件
        String path = "D:/file/";
        String fileName = "system.txt";

        path += fileName;
        System.out.println(path);

        File file = new File(path);

        String name = file.getName();
        System.out.println(name);

    }

}
